package com.novel.frame.wxl;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.WindowConstants;
import javax.swing.border.TitledBorder;


import com.novel.bean.Book;
import com.novel.db.BaseDao;
import com.novel.frame.lgw.NovelRead;
import com.novel.frame.lgw.StackRoom;
import com.novel.frame.lxf.FirstPage_Jpanel;
import com.novel.frame.lxf.Login_Panel;
import com.novel.frame.lxf.Register_Jpanel;
import com.novel.frame.yf.My_bookshelf;


public class ClickLaterFrame {
private JScrollPane sp_all;//总滚动面板
	
	private JPanel pl_All;//总面板
	
	private JPanel pl_north;//上部面板
	
	private JPanel pl_north_north;//上部固定面板上部
	private JLabel lb_Bokseagirls;//书海女生网
	private JLabel lb_BookSeaGirlNetPart;//书海女生网按钮隔开线
	private JLabel lb_BookSeaLiteratureNet;//书海文学网按钮
	private JLabel lb_BookSeaLiteratureNetPart;//书海文学网按钮隔开线
	private JLabel lb_BookSeaComicNet;//书海动漫网按钮
	private JLabel lb_register;//注册按钮
	private JLabel lb_registerPart;//注册按钮隔开线
	private JLabel lb_help;//帮助按钮
	private JLabel lb_helpPart;//帮助按钮隔开线
    private JLabel lb_north_login;//登录按钮
    private JLabel lb_north_loginPart;//登录按钮隔开线
    private JLabel lb_Client;//客户端按钮
    
    
	private JPanel pl_north_center;//上部固定面板中部
	private JLabel lb_shuhai;//书海标签
	private JLabel lb_resou;//热搜标签
	private JLabel lb_resou_msg1;//热搜第一条消息
	private JLabel lb_resou_msg2;//热搜第二条消息
	private JLabel lb_resou_msg3;//热搜第三条消息
	
	private JTextField tf_search;//搜索文本域
	private JLabel lb_search;//搜索按钮
	private JLabel lb_searchTips;//搜索提示
	private JLabel lb_Recharge;//充值
	private JLabel lb_WritersCenter;//作家中心按钮
	private JLabel lb_center_loginMail;//中部登录邮件图像
	private JLabel lb_center_loginHeadPicture;//中部登录头像
	
    private JPanel pl_north_south;//上部固定面板下部
   
    
    private JLabel lb_FirstPage;//首页按钮
    private JLabel lb_FirstPagePart;//首页按钮隔开线
    private JLabel lb_StackRoom;//书库按钮
    private JLabel lb_StackRoomPart;//书库按钮隔开线
    private JLabel lb_Ranking;//排行按钮
    private JLabel lb_RankingPart;//排行按钮隔开线
    private JLabel lb_IpSpecialArea;//IP专区按钮
    private JLabel lb_IpSpecialAreaPart;//IP专区按钮隔开线
    private JLabel lb_WriterWelfare;//作家福利按钮
    private JLabel lb_WriterWelfarePart;//作家福利按钮隔开线
    private JLabel lb_AnnounceInformation;//公告资讯按钮
    private JLabel lb_AnnounceInformationPart;//公告资讯按钮隔开线
    private JLabel lb_GirlSpecialArea;//女生专区按钮
    private JLabel lb_GirlSpecialAreaPart;//女生专区按钮隔开线
    private JLabel lb_MyBookShelf;//我的书架按钮
    
    //=======================
    
    private JPanel pl_center;//中部面板
    
    private JPanel pl_center_north;//中间上部面板
    private JLabel lb_location;//当前位置
    
    
    
    private JPanel pl_center_right;//中部右边面板
    private JPanel pl_center_right_north;//中部右边面板上部
    private JLabel lb_userIcon;//用户图标
    private JLabel lb_user;//用户
    private JLabel lb_userMessages;//用户信息
    
    
    private JPanel pl_center_right_center;//中部右边面板中部
    
    private JPanel pl_center_right_center_north;//中部右边面板中部
    private JLabel lb_fansimg;//粉丝榜图片
    

    private JPanel pl_center_right_center_center;//中部右边面板中部
    private JLabel lb_bestSells_msg1;
    private JLabel lb_bestSells_msg1_img;
    private JLabel lb_bestSells_msg2;
    private JLabel lb_bestSells_msg3;
    private JLabel lb_bestSells_msg4;
    private JLabel lb_bestSells_msg5;
    private JLabel lb_bestSells_msg6;
    private JLabel lb_bestSells_msg7;
    private JLabel lb_bestSells_msg8;
    private JLabel lb_bestSells_msg9;
    private JLabel lb_bestSells_msg10;
    
    private JLabel lb_fengshenbang_one;//第一条
    private JLabel lb_fengshenbang;//第一条
    private JLabel lb_fengshenbang_two;//第二条
    private JLabel lb_fengshenbang_three;//第三条
    private JLabel lb_fengshenbang_four;//第四条
    private JLabel lb_fengshenbang_five;//第五条
    private JLabel lb_fengshenbang_six;//第六条
    private JLabel lb_fengshenbang_seven;//第七条
    private JLabel lb_fengshenbang_eight;//第八条
    private JLabel lb_fengshenbang_nine;//第九条
    private JLabel lb_fengshenbang_ten;//第十条
    
    
    
    private JPanel pl_center_right_south;//中部右边面板下部
    
    
    private JPanel pl_center_center;//中部中间面板
    private JPanel pl_center_center_center;//中部中间面板
    private JPanel pl_center_center_center_center;//中部中间面板中
    private JScrollPane sp_pl_center_center_center_center;//
    private JLabel lb_interact;//粉丝互动
    private JLabel lb_recommend;//推荐
    private JLabel lb_monthticket;//月票
    private JLabel lb_othersLove;//其他推荐的图片
    private JLabel lb_book1;
    private JLabel lb_book2;
    private JLabel lb_book3;
    private JLabel lb_book4;
    private JLabel lb_book5;
    private JLabel lb_comment;//评论
    
    
    private JPanel pl_center_center_center_north;//中部中间面板上
    private JLabel lb_writerMsg;//作品信息
    private JLabel lb_content;//
    private JLabel lb_writercontent;//作品内容
    private JLabel lb_msg;//信息
    
    
    
    private JLabel lb_reward;//打赏图片
    private JLabel lb_flowers;//鲜花图片
    private JLabel lb_coffee;//咖啡
    private JLabel lb_magicpen;//神笔
    private JLabel lb_car;//车
    private JLabel lb_villa;//别墅
    
    
    
    
    private JPanel pl_center_center_north;//中部上部面板
    private JLabel lb_shanhaijing_img;//山海经图片
    private JLabel lb_shanghaijing;//山海经标签
    private JLabel lb_reader;//立即阅读标签
    private JLabel lb_joinBooks;//加入书架
    
    
    
    
    private JPanel pl_left;//左边面板
    private JPanel pl_right;//右边面板
    
    private JPanel pl_south;//南部面板
    private JLabel lb_southimg;//南部面板图片
    
    private int ScreenWidth;
    private int ScreenHeight;
    private BaseDao baseDao = new BaseDao();
	public ClickLaterFrame(ImageIcon img,String bookname,String username,boolean falg) {
		//获取屏幕分辨率
	    Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
		//获取屏幕宽高
	    ScreenWidth = (int)dimension.getWidth();
	    ScreenHeight = (int)dimension.getHeight();
		//设置总布局
		JFrame jf=new JFrame("书海小说网");
		jf.setLayout(new BorderLayout());
		jf.setIconImage(Toolkit.getDefaultToolkit().createImage(ClickLaterFrame.class.getResource("./img/主题.jpg")));
		//界面总面板
		pl_All = new JPanel();
		pl_All.setPreferredSize(new Dimension(1500, 3500));
		pl_All.setLayout(new BorderLayout());
		//pl_All.setPreferredSize(new Dimension(900, 827));
		//滑动总面板
		sp_all=new JScrollPane();
		sp_all.getViewport().add(pl_All);
		//设置滚动条滑动速度
		sp_all.getVerticalScrollBar().setUnitIncrement(30);  
		jf.add(sp_all);
		
		//上部总面板
		pl_north=new JPanel();
		pl_north.setLayout(new BorderLayout());
		pl_north.setPreferredSize(new Dimension(ScreenWidth, 230));
		pl_north.setBackground(Color.white);
		pl_north.setBorder(new TitledBorder(""));
		pl_All.add(BorderLayout.NORTH,pl_north);
		Font font=new Font("微软雅黑", Font.PLAIN, 20);
		//上部面板上部
	    pl_north_north=new JPanel();
	    pl_north_north.setLayout(null);
	    pl_north_north.setPreferredSize(new Dimension(ScreenWidth, 33));
	    pl_north_north.setBackground(new Color(189,183,107));
	    pl_north.add(BorderLayout.NORTH,pl_north_north);
	    
	    //上部面板上部的三个书海标签
	    lb_Bokseagirls=new JLabel("书海女生网");
	    lb_Bokseagirls.setFont(font);
	    lb_Bokseagirls.setForeground(Color.black);
	    lb_Bokseagirls.setBounds( (int)(ScreenWidth*0.125),  (int)(ScreenHeight*0.2*0.2*0),160, 30);
	    pl_north_north.add(lb_Bokseagirls);
	    lb_Bokseagirls.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		
        		
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_Bokseagirls.setCursor(new Cursor(Cursor.HAND_CURSOR));
        		lb_Bokseagirls.setForeground(Color.GRAY);
        	}
        	@Override
        	public void mouseExited(MouseEvent e) {
        		lb_Bokseagirls.setForeground(Color.black);
        	}
		});
	    
	  //书海女神网按钮隔开线
	    lb_BookSeaGirlNetPart=new JLabel("|");
	    lb_BookSeaGirlNetPart.setFont(font);
	    lb_BookSeaGirlNetPart.setForeground(Color.black);
	    lb_BookSeaGirlNetPart.setBounds( (int)(ScreenWidth*0.18),  (int)(ScreenHeight*0.2*0.2*0),30, 30);
	    pl_north_north.add(lb_BookSeaGirlNetPart);
	   
	    //书海文学网按钮
	    lb_BookSeaLiteratureNet=new JLabel("书海文学网");
	    lb_BookSeaLiteratureNet.setFont(font);
	    lb_BookSeaLiteratureNet.setForeground(Color.black);
	    lb_BookSeaLiteratureNet.setBounds( (int)(ScreenWidth*0.185),  (int)(ScreenHeight*0.2*0.2*0),160, 30);
	    pl_north_north.add(lb_BookSeaLiteratureNet);
	    lb_BookSeaLiteratureNet.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_BookSeaLiteratureNet.setCursor(new Cursor(Cursor.HAND_CURSOR));
        		lb_BookSeaLiteratureNet.setForeground(Color.GRAY);
        	}
        	public void mouseExited(MouseEvent e) {
        		lb_BookSeaLiteratureNet.setForeground(Color.black);
        	}
		});
	    
	    //书海女神网按钮隔开线
	    lb_BookSeaLiteratureNetPart=new JLabel("|");
	    lb_BookSeaLiteratureNetPart.setFont(font);
	    lb_BookSeaLiteratureNetPart.setForeground(Color.black);
	    lb_BookSeaLiteratureNetPart.setBounds( (int)(ScreenWidth*0.24),  (int)(ScreenHeight*0.2*0.2*0),30, 30);
	    pl_north_north.add(lb_BookSeaLiteratureNetPart);
	   
	    //书海动漫网按钮
	    lb_BookSeaComicNet=new JLabel("书海动漫网");
	    lb_BookSeaComicNet.setFont(font);
	    lb_BookSeaComicNet.setForeground(Color.black);
	    lb_BookSeaComicNet.setBounds( (int)(ScreenWidth*0.245),  (int)(ScreenHeight*0.2*0.2*0),160, 30);
	    pl_north_north.add(lb_BookSeaComicNet);
	    lb_BookSeaComicNet.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_BookSeaComicNet.setCursor(new Cursor(Cursor.HAND_CURSOR));
        		lb_BookSeaComicNet.setForeground(Color.GRAY);
        	}
        	public void mouseExited(MouseEvent e) {
        		lb_BookSeaComicNet.setForeground(Color.black);
        	}
		});
	    
	    //注册按钮
	    lb_register=new JLabel("注册");
	    if (falg) {
	    	lb_register.setText(username);
	    	lb_register.addMouseListener(new MouseAdapter() {
			       @Override
			    public void mouseClicked(MouseEvent e) {
			    	   new ClickLaterFrame(img,bookname,username, true);
			          jf.dispose();
			    }
			});
		 }else {
			 lb_register.setText("注册"); 
			 lb_register.addMouseListener(new MouseAdapter() {
				       @Override
				    public void mouseClicked(MouseEvent e) {
				    	   new Register_Jpanel();
				    }
				});
		 }
	    lb_register.setFont(font);
	    lb_register.setForeground(Color.black);
        lb_register.setBounds( (int)(ScreenWidth*0.72),  (int)(ScreenHeight*0.2*0.2*0), 50, 30);
        lb_register.addMouseListener(new MouseAdapter() {
        	
        	@Override
        	public void mouseEntered(MouseEvent e) {
        		lb_register.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    pl_north_north.add(lb_register);
	    
	    //注册按钮隔开线
	    lb_registerPart=new JLabel("|");
	    lb_registerPart.setFont(font);
	    lb_registerPart.setForeground(Color.black);
	    lb_registerPart.setBounds( (int)(ScreenWidth*0.745),  (int)(ScreenHeight*0.2*0.2*0), 15, 30);
	    pl_north_north.add(lb_registerPart);

	    
	    //登录按钮
	    lb_north_login=new JLabel("登录");  
	    if (falg) {
	    	lb_north_login.setText("退出");
	    	lb_north_login.addMouseListener(new MouseAdapter() {
			       @Override
			    public void mouseClicked(MouseEvent e) {
			    	   new ClickLaterFrame(img,bookname,"", false);
			          jf.dispose();
			    }
			});
		 }else {
			 lb_north_login.setText("登录"); 
			 lb_north_login.addMouseListener(new MouseAdapter() {
				       @Override
				    public void mouseClicked(MouseEvent e) {
				    	   new Login_Panel();
				    }
				});
		 }
	    lb_north_login.setFont(font);
	    lb_north_login.setForeground(Color.red);
	    //lb_register.setIcon(new ImageIcon(Novel.class.getResource("/com/lxf/Novel/上部统一面板/注册文字.png")));
	    lb_north_login.setBounds((int)(ScreenWidth*0.755),  (int)(ScreenHeight*0.2*0.2*0), 50, 30);
	    lb_north_login.addMouseListener(new MouseAdapter() {
        	
        	public void mouseEntered(MouseEvent e) {
        		lb_north_login.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    
	    pl_north_north.add(lb_north_login);
	    
	    //登录按钮隔开线
	    lb_north_loginPart=new JLabel("|");
	    lb_north_loginPart.setFont(font);
	    lb_north_loginPart.setForeground(Color.black);
	    lb_north_loginPart.setBounds( (int)(ScreenWidth*0.78),  (int)(ScreenHeight*0.2*0.2*0), 15, 30);
	    pl_north_north.add(lb_north_loginPart);
	 
	  
	    //帮助按钮
	    lb_help=new JLabel("帮助");
	    lb_help.setFont(font);
	    lb_help.setForeground(Color.black);
	    lb_help.setBounds((int)(ScreenWidth*0.79),  (int)(ScreenHeight*0.2*0.2*0), 80, 30);
	    pl_north_north.add(lb_help);
	    lb_help.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_help.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    
	    //帮助按钮隔开线
	    lb_helpPart=new JLabel("|");
	    lb_helpPart.setFont(font);
	    lb_helpPart.setForeground(Color.black);
	    lb_helpPart.setBounds( (int)(ScreenWidth*0.815),  (int)(ScreenHeight*0.2*0.2*0), 30, 30);
	    pl_north_north.add(lb_helpPart);
	    
	    //客户端按钮
	    lb_Client=new JLabel("客户端");
	    lb_Client.setFont(font);
	    lb_Client.setForeground(Color.black);
	    lb_Client.setBounds((int)(ScreenWidth*0.825),  (int)(ScreenHeight*0.2*0.2*0), 80, 30);
	    pl_north_north.add(lb_Client);
	    lb_Client.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_Client.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    
	    //上部面板中部
	    pl_north_center=new JPanel();
	    pl_north_center.setLayout(null);
	    pl_north_center.setBackground(Color.white);
	    pl_north.add(BorderLayout.CENTER,pl_north_center);
		
	    //上部面板中部书海图片
	    lb_shuhai=new JLabel();
	    lb_shuhai.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/书海标题.png")));
	    lb_shuhai.setBounds( (int)(ScreenWidth*0.105),(int)(ScreenHeight*0.2*0.6*0.1*0.1*0.1), 300, 200);
	    pl_north_center.add(lb_shuhai);
	    
	    //上部面板热搜图片
	    lb_resou = new JLabel("热搜:");
	    lb_resou.setFont(font);
	    lb_resou.setBounds((int)(ScreenWidth*0.375), (int)(ScreenHeight*0.2*0.6*0.4),50, 20);
	    pl_north_center.add(lb_resou);
	    
	    lb_resou_msg1 = new JLabel("钉坟匠");
	    lb_resou_msg1.setForeground(Color.red);
	    lb_resou_msg1.setFont(font);
	    lb_resou_msg1.setBounds((int)(ScreenWidth*0.400), (int)(ScreenHeight*0.2*0.6*0.4),80, 20);
	    pl_north_center.add(lb_resou_msg1);
	    lb_resou_msg1.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseEntered(MouseEvent e) {
	    		lb_resou_msg1.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    		lb_resou_msg1.setForeground(Color.gray);
	    	}
	    	public void mouseExited(MouseEvent e) {
	    		lb_resou_msg1.setForeground(Color.red);
	    	}
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	    
	    lb_resou_msg2 = new JLabel("血刃");
	    lb_resou_msg2.setForeground(Color.red);
	    lb_resou_msg2.setFont(font);
	    lb_resou_msg2.setBounds((int)(ScreenWidth*0.435), (int)(ScreenHeight*0.2*0.6*0.4),80, 20);
	    pl_north_center.add(lb_resou_msg2);
	    lb_resou_msg2.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseEntered(MouseEvent e) {
	    		lb_resou_msg2.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    		lb_resou_msg2.setForeground(Color.gray);
	    	}
	    	public void mouseExited(MouseEvent e) {
	    		lb_resou_msg2.setForeground(Color.red);
	    	}
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	    
	    lb_resou_msg3 = new JLabel("绝世武尊");
	    lb_resou_msg3.setForeground(Color.red);
	    lb_resou_msg3.setFont(font);
	    lb_resou_msg3.setBounds((int)(ScreenWidth*0.460), (int)(ScreenHeight*0.2*0.6*0.4),80, 20);
	    pl_north_center.add(lb_resou_msg3);
	    lb_resou_msg3.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseEntered(MouseEvent e) {
	    		lb_resou_msg3.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    		lb_resou_msg3.setForeground(Color.gray);
	    	}
	    	@Override
	    	public void mouseExited(MouseEvent e) {
	    		lb_resou_msg3.setForeground(Color.red);
	    	}
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	    
	    //搜索文本框
	    tf_search=new JTextField();
	    tf_search.setFont(font);
	    tf_search.setBounds((int)(ScreenWidth*0.375), (int)(ScreenHeight*0.2*0.6*0.6),350, 50);
	    pl_north_center.add(tf_search);
	    
	    //上部面板输入提示图片
	    lb_searchTips=new JLabel();
	    lb_searchTips.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/输入提示标签.png")));
	    lb_searchTips.setBounds((int)(ScreenWidth*0.375), (int)(ScreenHeight*0.2*0.6*0.7),225, 30);
	    pl_north_center.add(lb_searchTips);
	    
	    //上部面板搜索按钮图片
	    lb_search=new JLabel();
	    lb_search.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/搜索.png")));
	    lb_search.setBounds((int)(ScreenWidth*0.56), (int)(ScreenHeight*0.2*0.6*0.6),80, 50);
	    pl_north_center.add(lb_search);
	    lb_search.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_search.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		if (!tf_search.getText().equals("")) {
					new SearchFrame();
				}
					
				
	    		if (e.getButton()==MouseEvent.BUTTON1) {
	    			String params="%"+tf_search.getText()+"%";
	    			String sql="SELECT * FROM book WHERE bookname LIKE ?";
	    			Book book=searchbook(sql,params);
					System.out.println(book);
				}
	    		
	    	}
		});
	    
	    //上部面板充值按钮
	    lb_Recharge=new JLabel();
	    lb_Recharge.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/充值.png")));
	    lb_Recharge.setBounds((int)(ScreenWidth*0.69), (int)(ScreenHeight*0.2*0.6*0.4),225, 30);
	    pl_north_center.add(lb_Recharge);
	    lb_Recharge.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_Recharge.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    //上部面板作家中心按钮
	    lb_WritersCenter=new JLabel();
	    lb_WritersCenter.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/作家中心.png")));
	    lb_WritersCenter.setBounds((int)(ScreenWidth*0.69), (int)(ScreenHeight*0.2*0.6*0.7),225, 30);
	    pl_north_center.add(lb_WritersCenter);
	    lb_WritersCenter.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_WritersCenter.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    
	    //上部面板邮件图像登录按钮
	    lb_center_loginMail=new JLabel();
	    lb_center_loginMail.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/邮箱图片登录图片.png")));
	    lb_center_loginMail.setBounds((int)(ScreenWidth*0.77), (int)(ScreenHeight*0.2*0.6*0.7),225, 30);
	    pl_north_center.add(lb_center_loginMail);
	    lb_center_loginMail.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		new Login_Panel();
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_center_loginMail.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    
	    //上部面板登录头像图片
	    lb_center_loginHeadPicture=new JLabel();
	    lb_center_loginHeadPicture.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/登录注册按钮.png")));
	    lb_center_loginHeadPicture.setBounds((int)(ScreenWidth*0.81), (int)(ScreenHeight*0.2*0.6*0.5),280, 80);
	    pl_north_center.add(lb_center_loginHeadPicture);
	    

	    //上部面板下部
	    pl_north_south=new JPanel();
	    pl_north_south.setLayout(null);
	    pl_north_south.setBackground(new Color(178,34,34));
	    pl_north_south.setPreferredSize(new Dimension(0, 50));
	    pl_north.add(BorderLayout.SOUTH,pl_north_south);
	    
	    //首页按钮
	    lb_FirstPage=new JLabel("首页");
	    lb_FirstPage.setFont(font);
	    lb_FirstPage.setForeground(Color.white);
	    lb_FirstPage.setBounds((int)(ScreenWidth*0.16), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    lb_FirstPage.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		jf.dispose();
	    		new FirstPage_Jpanel(bookname, false);
	    	}
	    	@Override
	    	public void mouseEntered(MouseEvent e) {
	    		lb_FirstPage.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    pl_north_south.add(lb_FirstPage);
	    
	    //首页隔开按钮
	    lb_FirstPagePart=new JLabel("|");
	    lb_FirstPagePart.setFont(font);
	    lb_FirstPagePart.setForeground(Color.white);
	    lb_FirstPagePart.setBounds((int)(ScreenWidth*0.21), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_FirstPagePart);
	    
	    //书库按钮
	    lb_StackRoom=new JLabel("书库");
	    lb_StackRoom.setFont(font);
	    lb_StackRoom.setForeground(Color.white);
	    lb_StackRoom.setBounds((int)(ScreenWidth*0.24), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    lb_StackRoom.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		jf.dispose();
        		new StackRoom(username, falg);
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_StackRoom.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    pl_north_south.add(lb_StackRoom);
	    
	    //书库隔开标签
	    lb_StackRoomPart=new JLabel("|");
	    lb_StackRoomPart.setFont(font);
	    lb_StackRoomPart.setForeground(Color.white);
	    lb_StackRoomPart.setBounds((int)(ScreenWidth*0.29), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_StackRoomPart);
	    
	    //排行按钮
	    lb_Ranking=new JLabel("排行");
	    lb_Ranking.setFont(font);
	    lb_Ranking.setForeground(Color.white);
	    lb_Ranking.setBounds((int)(ScreenWidth*0.325), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    lb_Ranking.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		jf.dispose();
        		new RankingFrame(username, falg);
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_Ranking.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    pl_north_south.add(lb_Ranking);
	    
	    //排行隔开标签
	    lb_RankingPart=new JLabel("|");
	    lb_RankingPart.setFont(font);
	    lb_RankingPart.setForeground(Color.white);
	    lb_RankingPart.setBounds((int)(ScreenWidth*0.37), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_RankingPart);
	    
	    //IP专区按钮
	    lb_IpSpecialArea=new JLabel("IP专区");
	    lb_IpSpecialArea.setFont(font);
	    lb_IpSpecialArea.setForeground(Color.white);
	    lb_IpSpecialArea.setBounds((int)(ScreenWidth*0.4), (int)(ScreenHeight*0.2*0.2*0.05), 100, 50);
	    pl_north_south.add(lb_IpSpecialArea);
	    
	    lb_IpSpecialArea.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_IpSpecialArea.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    //IP专区按钮隔开线
	    lb_IpSpecialAreaPart=new JLabel("|");
	    lb_IpSpecialAreaPart.setFont(font);
	    lb_IpSpecialAreaPart.setForeground(Color.white);
	    lb_IpSpecialAreaPart.setBounds((int)(ScreenWidth*0.455), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_IpSpecialAreaPart);
	    
	    //作家福利按钮
	    lb_WriterWelfare=new JLabel("作家福利");
	    lb_WriterWelfare.setFont(font);
	    lb_WriterWelfare.setForeground(Color.white);
	    lb_WriterWelfare.setBounds((int)(ScreenWidth*0.485), (int)(ScreenHeight*0.2*0.2*0.05), 100, 50);
	    pl_north_south.add(lb_WriterWelfare);
	    lb_WriterWelfare.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_WriterWelfare.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		jf.setVisible(false);
        		new WelfareFrame();
        	}
        	
		});
	    
	    //作家福利按钮隔开线
	    lb_WriterWelfarePart=new JLabel("|");
	    lb_WriterWelfarePart.setFont(font);
	    lb_WriterWelfarePart.setForeground(Color.white);
	    lb_WriterWelfarePart.setBounds((int)(ScreenWidth*0.55), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_WriterWelfarePart);
	    lb_WriterWelfarePart.setCursor(new Cursor(Cursor.HAND_CURSOR));
	   
	    //公告资讯按钮
	    lb_AnnounceInformation=new JLabel("公告资讯");
	    lb_AnnounceInformation.setFont(font);
	    lb_AnnounceInformation.setForeground(Color.white);
	    lb_AnnounceInformation.setBounds((int)(ScreenWidth*0.58), (int)(ScreenHeight*0.2*0.2*0.05), 100, 50);
	    pl_north_south.add(lb_AnnounceInformation);
	    
	    lb_AnnounceInformation.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_AnnounceInformation.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    
	    //公告资讯按钮隔开线
	    lb_AnnounceInformationPart=new JLabel("|");
	    lb_AnnounceInformationPart.setFont(font);
	    lb_AnnounceInformationPart.setForeground(Color.white);
	    lb_AnnounceInformationPart.setBounds((int)(ScreenWidth*0.645), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_AnnounceInformationPart);
	    
	    //女生专区按钮
	    lb_GirlSpecialArea=new JLabel("女生专区");
	    lb_GirlSpecialArea.setFont(font);
	    lb_GirlSpecialArea.setForeground(Color.white);
	    lb_GirlSpecialArea.setBounds((int)(ScreenWidth*0.675), (int)(ScreenHeight*0.2*0.2*0.05), 100, 50);
	    pl_north_south.add(lb_GirlSpecialArea);
	    
	    lb_GirlSpecialArea.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        		JOptionPane.showMessageDialog(null, "该功能正在建设中！！");
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_GirlSpecialArea.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}
		});
	    
	    //女生专区按钮隔开线
	    lb_GirlSpecialAreaPart=new JLabel("|");
	    lb_GirlSpecialAreaPart.setFont(font);
	    lb_GirlSpecialAreaPart.setForeground(Color.white);
	    lb_GirlSpecialAreaPart.setBounds((int)(ScreenWidth*0.74), (int)(ScreenHeight*0.2*0.2*0.05), 50, 50);
	    pl_north_south.add(lb_GirlSpecialAreaPart);
	    
	    
	    //我的书架按钮
	    lb_MyBookShelf=new JLabel("我的书架");
	    lb_MyBookShelf.setFont(font);
	    lb_MyBookShelf.setForeground(Color.white);
	    lb_MyBookShelf.addMouseListener(new MouseAdapter() {
        	@Override
        	public void mouseClicked(MouseEvent e) {
        			jf.dispose();
        			new My_bookshelf(null, false);
        		}
        	public void mouseEntered(MouseEvent e) {
        		lb_MyBookShelf.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    	}	
      
		});
	    lb_MyBookShelf.setBounds((int)(ScreenWidth*0.77), (int)(ScreenHeight*0.2*0.2*0.05), 100, 50);
	    pl_north_south.add(lb_MyBookShelf);
	    
	    //============================================
	    
	    //中部面板
	    pl_center = new JPanel();
	    pl_center.setPreferredSize(new Dimension(1500, 1800));
	    pl_center.setLayout(new BorderLayout());
	    pl_All.add(BorderLayout.CENTER,pl_center);
	    
	    //中上面板
	    pl_center_north = new JPanel();
	    pl_center_north.setLayout(null);
	    pl_center_north.setPreferredSize(new Dimension(0, 30));
	    pl_center_north.setBorder(new TitledBorder(""));
	    pl_center.add(BorderLayout.NORTH,pl_center_north);
	    
	    //位置信息
//	    lb_location = new JLabel();
//	    lb_location.setBounds(5, 5, 300, 20);
//	    lb_location.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/当前位置信息.png")));
//	    pl_center_north.add(lb_location);
	    
	    
	    //中部左边面板
	    pl_center_center = new JPanel();
	    pl_center_center.setLayout(new BorderLayout());
	    pl_center.add(BorderLayout.CENTER,pl_center_center);
	    
	    //中部中间上部面板
	    pl_center_center_north = new JPanel();
	    pl_center_center_north.setLayout(null);
	    pl_center_center_north.setPreferredSize(new Dimension(0, 400));
	    pl_center_center_north.setBorder(new TitledBorder(""));
	    pl_center_center.add(BorderLayout.NORTH,pl_center_center_north);
	    
	    //山海经图片
	    lb_shanhaijing_img = new JLabel();
	    lb_shanhaijing_img.setIcon(img);
	    img.setImage(img.getImage().getScaledInstance((int) (ScreenWidth * 0.12), (int) (ScreenHeight * 0.26),
				Image.SCALE_DEFAULT));
	    lb_shanhaijing_img.setBounds(20, 5, 400, 400);
	    lb_shanhaijing_img.addMouseListener(new MouseAdapter() {
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, falg,bookname);
	    		jf.dispose();
	    		
	    	}
		});
	    pl_center_center_north.add(lb_shanhaijing_img);
	    
	    //山海经标签
	    Font font_book = new Font("微软雅黑", font.BOLD, 25);
	    lb_msg = new JLabel(bookname);
	    lb_msg.setFont(font_book);
//	    lb_msg.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/山海经标签.png")));
	    lb_msg.setBounds(315,1, 800, 200);
	    pl_center_center_north.add(lb_msg);
	    
	    //
	    lb_content = new JLabel();
	    lb_content.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/点击后的图片.png")));
	    lb_content.setBounds(300,100, 800, 250);
	    pl_center_center_north.add(lb_content);
	    //立即阅读
	    lb_reader = new JLabel();
	    lb_reader.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/立即阅读.png")));
	    lb_reader.setBounds(300,280, 120, 100);
	    lb_reader.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    pl_center_center_north.add(lb_reader);
	    
	    lb_reader.addMouseListener(new MouseAdapter() {
	    	public void mouseClicked(MouseEvent e) {
	    		new NovelRead(username, falg,bookname);
	    		jf.dispose();
	    		
	    	}
		});
	  
	    //加入书架
	    lb_joinBooks = new JLabel();
	    lb_joinBooks.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/加入书架.png")));
	    lb_joinBooks.setBounds(450,280, 120, 100);
	    pl_center_center_north.add(lb_joinBooks);
	    lb_joinBooks.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_joinBooks.addMouseListener(new MouseAdapter() {
	    	@Override
	    	public void mouseClicked(MouseEvent e) {
	    		
	    	}
		});
	   
	    //=========================================================================
	    //中部中间面板
	    pl_center_center_center = new JPanel();
	    pl_center_center_center.setLayout(new BorderLayout());
	    pl_center_center_center.setPreferredSize(new Dimension(0, 1200));
	    pl_center_center_center.setBorder(new TitledBorder(""));
	    pl_center_center.add(BorderLayout.CENTER,pl_center_center_center);
	    
	    //中部内容作品介绍内容
	    pl_center_center_center_north = new JPanel();
//	    pl_center_center_center_north.setBackground(Color.black);
	    pl_center_center_center_north.setLayout(null);
	    pl_center_center_center_north.setPreferredSize(new Dimension(0, 200));
	    pl_center_center_center_north.setBorder(new TitledBorder(""));
	    pl_center_center_center.add(BorderLayout.NORTH,pl_center_center_center_north);
	    
	    //作品信息
	    lb_writerMsg = new JLabel();
	    lb_writerMsg.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/作品信息.png")));
	    lb_writerMsg.setBounds(0, 1, 100, 60);
	    pl_center_center_center_north.add(lb_writerMsg);
//	    lb_writerMsg.addMouseListener(new MouseAdapter() {
//	    	@Override
//	    	public void mouseClicked(MouseEvent e) {
//	    		 lb_writerMsg.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/作品信息红色下划线.png")));
//	    		 lb_writerMsg.repaint();
//	    		 lb_writerMsg.updateUI();
//	    	}
//	    	
//		});

//	    //全部章节
//	    lb_chapter = new JLabel();
//	    lb_chapter.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/全部章节.png")));
//	    lb_chapter.setBounds(100, 1, 100, 60);
//	    pl_center_center_center_north.add(lb_chapter);
//	    lb_chapter.addMouseListener(new MouseAdapter() {
//	    	@Override
//	    	public void mouseClicked(MouseEvent e) {
//	    		lb_chapter.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/全部章节红色下划线.png")));
//	    		lb_chapter.repaint();
//	    		lb_chapter.updateUI();
//	    	}
//		});
	    
	    
	    //作品内容extArea
	    lb_writercontent = new JLabel();
	    lb_writercontent.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/作品信息内容.png")));
	    lb_writercontent.setBounds(1, 65, 1200, 60);
	    pl_center_center_center_north.add(lb_writercontent);
	    
//	    pl_center_center_center_north.setBackground(Color.green);
	    
	    
	    //=========
	    //中部内容面板
	    sp_pl_center_center_center_center = new JScrollPane();
	    sp_pl_center_center_center_center.getViewport().add(pl_center_center_center_center);
	    pl_center_center_center_center = new JPanel();
	    pl_center_center_center_center.setLayout(null);
	    pl_center_center_center_center.setPreferredSize(new Dimension(0, 1300));
	    pl_center_center_center_center.setBorder(new TitledBorder(""));
	    pl_center_center_center.add(BorderLayout.CENTER,pl_center_center_center_center);
	    
	    //打赏作品图片
	    lb_reward = new JLabel();
	    lb_reward.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/打赏作品图片.png")));
	    lb_reward.setBounds(1, 1, 1200, 60);
	    pl_center_center_center_center.add(lb_reward);
	    
	    //鲜花图片
	    lb_flowers = new JLabel();
	    lb_flowers.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/鲜花.png")));
	    lb_flowers.setBounds(50, 60, 200, 200);
	    pl_center_center_center_center.add(lb_flowers);
	    
	    //咖啡图片
	    lb_coffee = new JLabel();
	    lb_coffee.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/咖啡.png")));
	    lb_coffee.setBounds(250, 60, 200, 200);
	    pl_center_center_center_center.add(lb_coffee);
//	    
	    //神笔图片
	    lb_magicpen = new JLabel();
	    lb_magicpen.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/神笔.png")));
	    lb_magicpen.setBounds(450, 60, 200, 200);
	    pl_center_center_center_center.add(lb_magicpen);
	    
	    //跑车图片
	    lb_car = new JLabel();
	    lb_car.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/跑车.png")));
	    lb_car.setBounds(650, 60, 200, 200);
	    pl_center_center_center_center.add(lb_car);
	    
	    //别墅图片
	    lb_villa = new JLabel();
	    lb_villa.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/别墅.png")));
	    lb_villa.setBounds(850, 60, 200, 200);
	    pl_center_center_center_center.add(lb_villa);
	    
	    //粉丝互动图片
	    lb_interact = new JLabel();
	    lb_interact.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/粉丝互动.png")));
	    lb_interact.setBounds(1, 261, 1200, 65);
	    pl_center_center_center_center.add(lb_interact);
	    
	    //推荐票图片
	    lb_recommend = new JLabel();
	    lb_recommend.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/推荐票.png")));
	    lb_recommend.setBounds(38, 370, 800, 100);
	    pl_center_center_center_center.add(lb_recommend);
	    
	    //月票图片
	    lb_monthticket = new JLabel();
	    lb_monthticket.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/月票.png")));
	    lb_monthticket.setBounds(40, 510, 800, 100);
	    pl_center_center_center_center.add(lb_monthticket);
	    
	    //其他推荐
	    lb_othersLove = new JLabel();
	    lb_othersLove.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/喜欢这本书的人还喜欢.png")));
	    lb_othersLove.setBounds(1, 650, 1200, 100);
	    pl_center_center_center_center.add(lb_othersLove);
	    
	    //book1
	    lb_book1 = new JLabel();
	    lb_book1.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/星河战神.png")));
	    lb_book1.setBounds(70, 720, 800, 400);
	    pl_center_center_center_center.add(lb_book1);
	    
	    //book2
	    lb_book2 = new JLabel();
	    lb_book2.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/挖矿那些年.png")));
	    lb_book2.setBounds(270, 720, 800, 400);
	    pl_center_center_center_center.add(lb_book2);
	    
	    //book3
	    lb_book3 = new JLabel();
	    lb_book3.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/秦岭山精酿富乡.png")));
	    lb_book3.setBounds(470, 720, 800, 400);
	    pl_center_center_center_center.add(lb_book3);
	    
	    //book4
	    lb_book4 = new JLabel();
	    lb_book4.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/异国猎宝档案.png")));
	    lb_book4.setBounds(670, 720, 800, 400);
	    pl_center_center_center_center.add(lb_book4);
	    
	    //book5
	    lb_book5 = new JLabel();
	    lb_book5.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/我的海员生活.png")));
	    lb_book5.setBounds(870, 720, 800, 400);
	    pl_center_center_center_center.add(lb_book5);
	    
	    lb_comment = new JLabel();
	    lb_comment.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/评论.png")));
	    lb_comment.setBounds(1, 1000, 1200, 1000);
	    pl_center_center_center_center.add(lb_comment);

	    
	    
	    
	    //=============================右边面板=============================================
	    
	    
	    //右边面板
	    pl_center_right = new JPanel();
	    pl_center_right.setLayout(new BorderLayout());
	    pl_center_right.setPreferredSize(new Dimension(400, 0));
//	    pl_center_right.setBorder(new TitledBorder(""));
	    pl_center.add(BorderLayout.EAST,pl_center_right);
	    
	    //右边上部面板
	    pl_center_right_north = new JPanel();
	    pl_center_right_north.setLayout(null);
	    pl_center_right_north.setBorder(new TitledBorder(""));
	    pl_center_right_north.setPreferredSize(new Dimension(0, 400));
	    pl_center_right.add(BorderLayout.NORTH,pl_center_right_north);
	    
	    //用户图片
	    lb_userIcon = new JLabel();
	    lb_userIcon.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/用户图片.png")));
	    lb_userIcon.setBounds(150,50, 120, 100);
	    pl_center_right_north.add(lb_userIcon);
//	    lb_joinBooks.setCursor(new Cursor(Cursor.HAND_CURSOR));
	    lb_userIcon.addMouseListener(new MouseAdapter() {
        	public void mouseClicked(MouseEvent e) {
    
        	}
        	public void mouseEntered(MouseEvent e) {
        		lb_userIcon.setCursor(new Cursor(Cursor.HAND_CURSOR));
        	}
		});
	    
	    //用户名字
//	    lb_user = new JLabel("缪热");
//	    lb_user.setFont(font);
//	    lb_user.setBounds(176, 110, 50, 100);
//	    pl_center_right_north.add(lb_user);
//	    lb_user.addMouseListener(new MouseAdapter() {
//        	public void mouseClicked(MouseEvent e) {
//    
//        	}
//        	public void mouseEntered(MouseEvent e) {
//        		lb_user.setCursor(new Cursor(Cursor.HAND_CURSOR));
//        		lb_user.setForeground(Color.gray);
//        	}
//        	@Override
//        	public void mouseExited(MouseEvent e) {
//        		lb_user.setForeground(Color.black);
//        	}
//		});
	    
	    //用户信息
	    lb_userMessages = new JLabel();
	    lb_userMessages.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/用户信息.png")));
	    lb_userMessages.setBounds(15,140, 350, 300);
	    pl_center_right_north.add(lb_userMessages);
	    
	    //右边中部面板
	    pl_center_right_center = new JPanel();
	    pl_center_right_center.setLayout(new BorderLayout());
	    pl_center_right_center.setBorder(new TitledBorder(""));
	    pl_center_right_center.setPreferredSize(new Dimension(0, 400));
	    pl_center_right.add(BorderLayout.CENTER,pl_center_right_center);
	    
	    //右边中部面板上部
	    pl_center_right_center_north = new JPanel();
	    pl_center_right_center_north.setBorder(new TitledBorder(""));
	    pl_center_right_center_north.setPreferredSize(new Dimension(0, 460));
	    pl_center_right_center.add(BorderLayout.NORTH,pl_center_right_center_north);
	    
	    //粉丝帮榜
	    lb_fansimg = new JLabel();
	    lb_fansimg.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/粉丝榜图片.png")));
	    pl_center_right_center_north.add(lb_fansimg);
	    
	    //右边中部面板中部
	    pl_center_right_center_center = new JPanel();
	    pl_center_right_center_center.setLayout(null);
	    pl_center_right_center_center.setBorder(new TitledBorder(""));
//	    pl_center_right_center_center.setPreferredSize(new Dimension(0, 200));
	    pl_center_right_center.add(BorderLayout.CENTER,pl_center_right_center_center);
	    
	    //畅销榜
	    lb_fengshenbang = new JLabel();
	    lb_fengshenbang.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/24小时畅销榜.png")));
        lb_fengshenbang.setFont(font);
        lb_fengshenbang.setBounds(1, 1, 400, 60);
        pl_center_right_center_center.add(lb_fengshenbang);
        
        //标签1序号
		lb_fengshenbang_one = new JLabel();
		lb_fengshenbang_one.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/标签1.png")));
		lb_fengshenbang_one.setBounds(5, 50, 50, 50);
		pl_center_right_center_center.add(lb_fengshenbang_one);
		
		lb_bestSells_msg1 = new JLabel("山海经密档");
		lb_bestSells_msg1.setFont(font);
		lb_bestSells_msg1.setBounds(45, 50, 100, 50);
		pl_center_right_center_center.add(lb_bestSells_msg1);
		lb_bestSells_msg1.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_bestSells_msg1.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_bestSells_msg1.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_bestSells_msg1.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				
			}
		});
		lb_bestSells_msg1_img = new JLabel();
		lb_bestSells_msg1_img.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/封神榜标签1的图片.png")));
		lb_bestSells_msg1_img.setBounds(1, 95, 420, 120);
		pl_center_right_center_center.add(lb_bestSells_msg1_img);
		
		
		
		 //标签2序号
		lb_fengshenbang_two = new JLabel();
		lb_fengshenbang_two.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/标签2.png")));
		lb_fengshenbang_two.setBounds(5, 215, 50, 50);
		pl_center_right_center_center.add(lb_fengshenbang_two);
		
		lb_bestSells_msg2 = new JLabel("异国猎宝档案");
		lb_bestSells_msg2.setFont(font);
		lb_bestSells_msg2.setBounds(45, 215, 150, 50);
		pl_center_right_center_center.add(lb_bestSells_msg2);
		lb_bestSells_msg2.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_bestSells_msg2.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_bestSells_msg2.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_bestSells_msg2.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				
			}
		});
//		
		lb_fengshenbang_three = new JLabel();
		lb_fengshenbang_three.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/标签3.png")));
		lb_fengshenbang_three.setBounds(5, 255, 50, 50);
		pl_center_right_center_center.add(lb_fengshenbang_three);
		
		lb_bestSells_msg3 = new JLabel("最狂吞噬系统");
		lb_bestSells_msg3.setFont(font);
		lb_bestSells_msg3.setBounds(45, 255, 150, 50);
		pl_center_right_center_center.add(lb_bestSells_msg3);
		lb_bestSells_msg3.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_bestSells_msg3.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_bestSells_msg3.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_bestSells_msg3.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				
			}
		});
//		
		lb_fengshenbang_four = new JLabel();
		lb_fengshenbang_four.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/标签4.png")));
		lb_fengshenbang_four.setBounds(5, 295, 50, 50);
		pl_center_right_center_center.add(lb_fengshenbang_four);
		
		lb_bestSells_msg4 = new JLabel("无上斗魂");
		lb_bestSells_msg4.setFont(font);
		lb_bestSells_msg4.setBounds(45, 295, 150, 50);
		pl_center_right_center_center.add(lb_bestSells_msg4);
		lb_bestSells_msg4.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_bestSells_msg4.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_bestSells_msg4.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_bestSells_msg4.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				
			}
		});
//		
		lb_fengshenbang_five = new JLabel();
		lb_fengshenbang_five.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/标签5.png")));
		lb_fengshenbang_five.setBounds(5, 335, 50, 50);
		pl_center_right_center_center.add(lb_fengshenbang_five);
		
		lb_bestSells_msg5 = new JLabel("龙血狂神");
		lb_bestSells_msg5.setFont(font);
		lb_bestSells_msg5.setBounds(45, 335, 150, 50);
		pl_center_right_center_center.add(lb_bestSells_msg5);
		lb_bestSells_msg5.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_bestSells_msg5.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_bestSells_msg5.setForeground(Color.gray);
 			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_bestSells_msg5.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				
			}
		});
//		
		lb_fengshenbang_six = new JLabel();
		lb_fengshenbang_six.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/标签6.png")));
		lb_fengshenbang_six.setBounds(5, 375, 50, 50);
		pl_center_right_center_center.add(lb_fengshenbang_six);
		
		lb_bestSells_msg6 = new JLabel("八万年魔头在都市");
		lb_bestSells_msg6.setFont(font);
		lb_bestSells_msg6.setBounds(45, 375, 180, 50);
		pl_center_right_center_center.add(lb_bestSells_msg6);
		lb_bestSells_msg6.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_bestSells_msg6.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_bestSells_msg6.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_bestSells_msg6.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				
			}
		});
//		
		lb_fengshenbang_seven= new JLabel();
		lb_fengshenbang_seven.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/标签7.png")));
		lb_fengshenbang_seven.setBounds(5, 415, 50, 50);
		pl_center_right_center_center.add(lb_fengshenbang_seven);
		
		lb_bestSells_msg7 = new JLabel("修仙强者重回都市");
		lb_bestSells_msg7.setFont(font);
		lb_bestSells_msg7.setBounds(45, 415, 180, 50);
		pl_center_right_center_center.add(lb_bestSells_msg7);
		lb_bestSells_msg7.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_bestSells_msg7.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_bestSells_msg7.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_bestSells_msg7.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				
			}
		});
//		
		lb_fengshenbang_eight = new JLabel();
		lb_fengshenbang_eight.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/标签8.png")));
		lb_fengshenbang_eight.setBounds(5, 455, 50, 50);
		pl_center_right_center_center.add(lb_fengshenbang_eight);
		
		lb_bestSells_msg8 = new JLabel("青山炼仙诀");
		lb_bestSells_msg8.setFont(font);
		lb_bestSells_msg8.setBounds(46, 455, 150, 50);
		pl_center_right_center_center.add(lb_bestSells_msg8);
		lb_bestSells_msg8.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_bestSells_msg8.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_bestSells_msg8.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_bestSells_msg8.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				
			}
		});
//		
		lb_fengshenbang_nine= new JLabel();
		lb_fengshenbang_nine.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/标签9.png")));
		lb_fengshenbang_nine.setBounds(5, 495, 50, 50);
		pl_center_right_center_center.add(lb_fengshenbang_nine);
		
		lb_bestSells_msg9 = new JLabel("真龙");
		lb_bestSells_msg9.setFont(font);
		lb_bestSells_msg9.setBounds(45, 495, 150, 50);
		pl_center_right_center_center.add(lb_bestSells_msg9);
		lb_bestSells_msg9.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_bestSells_msg9.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_bestSells_msg9.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_bestSells_msg9.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				
			}
		});
//		
		lb_fengshenbang_ten= new JLabel();
		lb_fengshenbang_ten.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/标签10.png")));
		lb_fengshenbang_ten.setBounds(8, 535, 50, 50);
		pl_center_right_center_center.add(lb_fengshenbang_ten);
		
		lb_bestSells_msg10 = new JLabel("穿山甲异界纵横");
		lb_bestSells_msg10.setFont(font);
		lb_bestSells_msg10.setBounds(45, 535, 150, 50);
		pl_center_right_center_center.add(lb_bestSells_msg10);
		lb_bestSells_msg10.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseEntered(MouseEvent e) {
				lb_bestSells_msg10.setCursor(new Cursor(Cursor.HAND_CURSOR));
				lb_bestSells_msg10.setForeground(Color.gray);
			}
			@Override
			public void mouseExited(MouseEvent e) {
				lb_bestSells_msg10.setForeground(Color.black);
			}
			@Override
			public void mouseClicked(MouseEvent e) {
				
			}
		});
	    
	    //右边南部面板
	    pl_center_right_south = new JPanel();
	    pl_center_right_south.setLayout(new BorderLayout());
//	    pl_center_right_south.setBorder(new TitledBorder(""));
	    pl_center_right_south.setPreferredSize(new Dimension(0, 1400));
	    pl_center_right.add(BorderLayout.SOUTH,pl_center_right_south);	
	    
	    
	    
	    //左边面板
	    pl_left = new JPanel();
	    pl_left.setPreferredSize(new Dimension(190, 0));
//	    pl_left.setBorder(new TitledBorder(""));
	    pl_All.add(BorderLayout.WEST,pl_left);
	    
	    //右边面板
	    pl_right = new JPanel();
	    pl_right.setPreferredSize(new Dimension(190, 0));
//	    pl_right.setBorder(new TitledBorder(""));
	    pl_All.add(BorderLayout.EAST,pl_right);
	    ///=========================================
	    pl_south = new JPanel();
	    pl_All.add(BorderLayout.SOUTH,pl_south);
	    pl_south.setPreferredSize(new Dimension(0, 400));
	    
	    lb_southimg = new JLabel();
	    lb_southimg.setIcon(new ImageIcon(ClickLaterFrame.class.getResource("./img/南部图片.png")));
	    pl_south.add(lb_southimg);
	    //==========================================
	    
	    jf.setSize(ScreenWidth,ScreenHeight);//设置大小
		jf.setVisible(true);//设置可见
		jf.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);//设置可关闭
		jf.setLocationRelativeTo(null);//居中
	}
	
	//搜索方法
	public Book searchbook(String sql, Object ...params ) {
		Book book=null;
//		sql= "SELECT * FROM book WHERE bookname LIKE '%?%'";
//		Object paramsq="%巨鳄风暴%";
		
		try {
			book=baseDao.findBean(Book.class,sql,params);
//			System.out.println(book);
		} catch (Exception e) {
			e.printStackTrace();
		}finally {
			try {
				baseDao.CloseConnection();
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		return book;
	}
	//插入方法
		public Book insertchbook(String sql, Object ...params ) {
			Book book=null;
//			sql= "SELECT * FROM book WHERE bookname LIKE '%?%'";
//			Object paramsq="%巨鳄风暴%";
			
			try {
//				book=baseDao.(Book.class,sql,params);
//				System.out.println(book);
			} catch (Exception e) {
				e.printStackTrace();
			}finally {
				try {
					baseDao.CloseConnection();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
			return book;
		}
	
//	public static void main(String[] args) {
////		FrameBeautify.setLookAndFeel("com.jtattoo.plaf.smart.SmartLookAndFeel");
//		new ClickLaterFrame();
//	}

}
